﻿using DynConDevCorp.OpenArch.SmartData.Core.Metadata;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Reflection;

namespace UnitTest.DynConDevCorp.OpenArch.SmartData
{


    [TestClass]
    public class MetaAutoField_UnitTests
    {


        private TestContext testContextInstance;

        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        [TestMethod]
        [DeploymentItem("DynConDevCorp.OpenArch.SmartData.Core.dll")]
        public void ValueChangedTargetMethodName_UnitTest()
        {
            MetaAutoField_Accessor target = new MetaAutoField_Accessor(); 
            string expected = string.Empty;
            target.ValueChangedTargetMethodName = expected;
            string actual = target.ValueChangedTargetMethodName;
            Assert.AreEqual(expected, actual);
        }

        [TestMethod]
        [DeploymentItem("DynConDevCorp.OpenArch.SmartData.Core.dll")]
        public void ValueChangedEvent_UnitTest()
        {
            MetaAutoField_Accessor target = new MetaAutoField_Accessor(); 
            const MetaEvent_Accessor expected = null;
            target.ValueChangedEvent = expected;
            MetaEvent_Accessor actual = target.ValueChangedEvent;
            Assert.AreEqual(expected, actual);
        }

        [TestMethod]
        [DeploymentItem("DynConDevCorp.OpenArch.SmartData.Core.dll")]
        public void SpecializationType_UnitTest()
        {
            MetaAutoField_Accessor target = new MetaAutoField_Accessor(); 
            const Type expected = null;
            target.SpecializationType = expected;
            Type actual = target.SpecializationType;
            Assert.AreEqual(expected, actual);
        }

        [TestMethod]
        [DeploymentItem("DynConDevCorp.OpenArch.SmartData.Core.dll")]
        public void Property_UnitTest()
        {
            MetaAutoField_Accessor target = new MetaAutoField_Accessor(); 
            const PropertyInfo expected = null;
            target.Property = expected;
            PropertyInfo actual = target.Property;
            Assert.AreEqual(expected, actual);
        }

        [TestMethod]
        [DeploymentItem("DynConDevCorp.OpenArch.SmartData.Core.dll")]
        public void FieldName_UnitTest()
        {
            MetaAutoField_Accessor target = new MetaAutoField_Accessor(); 
            string expected = string.Empty;
            target.FieldName = expected;
            string actual = target.FieldName;
            Assert.AreEqual(expected, actual);
        }

        [TestMethod]
        [DeploymentItem("DynConDevCorp.OpenArch.SmartData.Core.dll")]
        public void ConcreteType_UnitTest()
        {
            MetaAutoField_Accessor target = new MetaAutoField_Accessor(); 
            const Type expected = null;
            target.ConcreteType = expected;
            Type actual = target.ConcreteType;
            Assert.AreEqual(expected, actual);
        }

        [TestMethod]
        [DeploymentItem("DynConDevCorp.OpenArch.SmartData.Core.dll")]
        public void ActualType_UnitTest()
        {
            MetaAutoField_Accessor target = new MetaAutoField_Accessor(); 
            const Type expected = null;
            target.ActualType = expected;
            Type actual = target.ActualType;
            Assert.AreEqual(expected, actual);
        }

        [TestMethod]
        [DeploymentItem("DynConDevCorp.OpenArch.SmartData.Core.dll")]
        public void MetaAutoFieldConstructor_UnitTest()
        {
            MetaAutoField_Accessor target = new MetaAutoField_Accessor();
            Assert.IsNotNull(target);
        }
    }
}
